package com.baidu.aip.client;

import com.baidu.aip.nlp.AipNlp;

/** 获取单例客户端
 * @author Jiayuan
 * @version 1.0
 * @description:
 * @time 11/16/2018 3:44 PM
 */
public class GetClient {

    private static AipNlp client = null;

    private GetClient(){};

    public static AipNlp getClient(String APP_ID, String API_KEY, String SECRET_KEY ){
        if(client == null){
            client = new AipNlp(APP_ID,API_KEY,SECRET_KEY);
            return client;
        }
        return client;
    }

}
